package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "品类属性项表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_cat_attr")
public class CatAttr extends BaseEntity {
    /**
     * 类目id
     */
    @TableField(value = "cat_id")
    @ApiModelProperty(value = "类目id")
    private Long catId;

    /**
     * 属性项id
     */
    @TableField(value = "attr_id")
    @ApiModelProperty(value = "属性项id")
    private Long attrId;

    /**
     * 属性项名称
     */
    @TableField(value = "attr_name")
    @ApiModelProperty(value = "属性项名称")
    private String attrName;

    /**
     * 属性项描述
     */
    @TableField(value = "attr_description")
    @ApiModelProperty(value = "属性项描述")
    private String attrDescription;

    /**
     * 1:选择  2:文本
     */
    @TableField(value = "attr_type")
    @ApiModelProperty(value = "1:选择  2:文本")
    private Integer attrType;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Long sort;

    public static final String COL_ID = "id";

    public static final String COL_CAT_ID = "cat_id";

    public static final String COL_ATTR_ID = "attr_id";

    public static final String COL_ATTR_NAME = "attr_name";

    public static final String COL_ATTR_DESCRIPTION = "attr_description";

    public static final String COL_ATTR_TYPE = "attr_type";

    public static final String COL_SORT = "sort";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}